package com.chiyou.common.utils;



/**
 * redis 的参数配置共组
 * @author 陈嘉瑛
 * @version 2015-11-18
 *
 */
public class RedisConfigUtil {
	/*****连接池配置******/
	//最多配置多少个给缓存池
	public static final Integer MAXINACTIVE = Integer.parseInt(PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisMaxInactive"));
	//最多缓存池中有多少个空闲的jedis
	public static final Integer MAXIDL = Integer.parseInt(PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisMaxIdl"));
	//当引入一个jedis时最大的等待时间（毫秒）
	public static final Integer MAXWAIT = Integer.parseInt(PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisMaxWait"));
	//在获取连接的时候检查有效性, 默认false
	public static final Boolean TESTONBORROW = false;
	
	/******redis配置******/
	//redis 的ip
	public static final String REDIS_IP = PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisServer");
	//redis 的端口
	public static final Integer REDIS_PORT = Integer.parseInt(PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisPort"));
	//密码
	public static final String REDIS_PWD = PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisUserPwd");
	//redis缓存时间单位秒
	public static final Integer REDIS_CACHE_TIMEOUT_SECOND = Integer.parseInt(PropertiesUtils.getInstance(System.getProperty("user.dir") + "/conf/conf.properties").getProperty( "redisCacheTimeOutSecond"));
}